<template>
  <div class="app-container">
    <p>过期时间一天，以达到每日推荐的需求</p>
    <el-table
      :data="list"
      border
      style="width: 100%">
      <el-table-column
        prop="title"
        label="标题"
        width="180">
      </el-table-column>
      <el-table-column
        prop="kind"
        label="分类"
        width="180">
      </el-table-column>
      <el-table-column
        prop="gmtCreate"
        label="创建时间">
      </el-table-column>
      <el-table-column
        prop="sort"
        label="排序">
      </el-table-column>
    </el-table>

  </div>
</template>
<script>
import article from "@/api/article/article"
export default{
  data(){
    return{
      list:null,//查询后的接口集合
    }
  },
  created(){
    this.getList()
  },
  methods:{
    getList(){
      article.getDaily()
        .then(response=>{
          console.log(response)
          this.list=response.data.DailyList
        })
    },
  }
}
</script>
